/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * OpcionesMenu.java
 *
 * Created on Nov 6, 2011, 3:26:54 PM
 */
package proyecto2;

import javax.swing.JOptionPane;

/**
 *
 * @author Pablo
 */
public class OpcionesMenu extends javax.swing.JFrame {
    CombinacionCandado newCandado = new CombinacionCandado();
    CuentaCorreo newCorreo = new CuentaCorreo();
    Cursos newCurso = new Cursos();
    RedesSociales newRsocial = new RedesSociales();
    LicenciaConducir newLicencia = new LicenciaConducir();
    
    private String cuentasCorreos[] ={"@gmail.com","@hotmail.com","@hotmail.es",
            "@yahoo.com","@yahoo.com.mx","@yahoo.es","@ymail.com","@rocketmail.com",
            "@myopera.com","@terra.es","@ya.com","@mixmail.com","@latinmail.com",
            "@starmedia.com","@orangemail.es"};
    
    private String redesSociales[]={"Facebook","google+","Twitter","MySpace","HI5!",
        "Orkut","Bebo","Xing","LinkedIn","Neurona","eConozco"};
    
    /** Creates new form OpcionesMenu */
    public OpcionesMenu() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar2 = new javax.swing.JMenuBar();
        jMenu3 = new javax.swing.JMenu();
        jMenu4 = new javax.swing.JMenu();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jPasswordField1 = new javax.swing.JPasswordField();
        jPasswordField2 = new javax.swing.JPasswordField();
        jTextField1 = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jEditorPane1 = new javax.swing.JEditorPane();
        jLayeredPane2 = new javax.swing.JLayeredPane();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jTextField2 = new javax.swing.JTextField();
        jTextField3 = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        jPasswordField3 = new javax.swing.JPasswordField();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jPasswordField4 = new javax.swing.JPasswordField();
        jLabel12 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jEditorPane2 = new javax.swing.JEditorPane();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jComboBox1 = new javax.swing.JComboBox();
        jLayeredPane3 = new javax.swing.JLayeredPane();
        jLabel8 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jTextField4 = new javax.swing.JTextField();
        jTextField5 = new javax.swing.JTextField();
        jTextField6 = new javax.swing.JTextField();
        jScrollPane3 = new javax.swing.JScrollPane();
        jEditorPane3 = new javax.swing.JEditorPane();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jLayeredPane4 = new javax.swing.JLayeredPane();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jTextField7 = new javax.swing.JTextField();
        jPasswordField5 = new javax.swing.JPasswordField();
        jPasswordField6 = new javax.swing.JPasswordField();
        jLabel22 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jEditorPane4 = new javax.swing.JEditorPane();
        jButton7 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jComboBox2 = new javax.swing.JComboBox();
        jLayeredPane5 = new javax.swing.JLayeredPane();
        jLabel23 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jTextField8 = new javax.swing.JTextField();
        jButton9 = new javax.swing.JButton();
        jLabel27 = new javax.swing.JLabel();
        jTextField9 = new javax.swing.JTextField();
        jButton10 = new javax.swing.JButton();
        jScrollPane5 = new javax.swing.JScrollPane();
        jEditorPane5 = new javax.swing.JEditorPane();
        jSpinner1 = new javax.swing.JSpinner();
        jSpinner2 = new javax.swing.JSpinner();
        jSpinner3 = new javax.swing.JSpinner();
        jLabel28 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLayeredPane6 = new javax.swing.JLayeredPane();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jPasswordField7 = new javax.swing.JPasswordField();
        jPasswordField8 = new javax.swing.JPasswordField();
        jPasswordField9 = new javax.swing.JPasswordField();
        jButton11 = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();

        jMenu3.setText("File");
        jMenuBar2.add(jMenu3);

        jMenu4.setText("Edit");
        jMenuBar2.add(jMenu4);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Menu de cuentas");

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel1.setForeground(new java.awt.Color(0, 51, 0));
        jLabel1.setText("Combinación de candados");
        jLabel1.setBounds(40, 10, 300, 30);
        jLayeredPane1.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel2.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel2.setText("Descripción:");
        jLabel2.setBounds(20, 180, 90, 17);
        jLayeredPane1.add(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel5.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel5.setText("    Repita contraseña:");
        jLabel5.setBounds(30, 130, 150, 17);
        jLayeredPane1.add(jLabel5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel6.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel6.setText("  ID candado:");
        jLabel6.setBounds(80, 50, 90, 17);
        jLayeredPane1.add(jLabel6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel7.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel7.setText("Contraseña candado:");
        jLabel7.setBounds(30, 90, 150, 17);
        jLayeredPane1.add(jLabel7, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jPasswordField1.setBounds(180, 90, 170, 30);
        jLayeredPane1.add(jPasswordField1, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jPasswordField2.setBounds(180, 130, 170, 30);
        jLayeredPane1.add(jPasswordField2, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField1.setBounds(180, 50, 170, 30);
        jLayeredPane1.add(jTextField1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton1.setForeground(new java.awt.Color(255, 65, 0));
        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/OCI/preferences-desktop-cryptography.png"))); // NOI18N
        jButton1.setText("Nuevo");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jButton1.setBounds(60, 300, 110, 40);
        jLayeredPane1.add(jButton1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton2.setForeground(new java.awt.Color(102, 102, 0));
        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/OCI/ojos.png"))); // NOI18N
        jButton2.setText("Creados");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });
        jButton2.setBounds(200, 300, 110, 40);
        jLayeredPane1.add(jButton2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jScrollPane1.setViewportView(jEditorPane1);
        jEditorPane1.getAccessibleContext().setAccessibleParent(jTextField1);

        jScrollPane1.setBounds(22, 200, 320, 90);
        jLayeredPane1.add(jScrollPane1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane1.addTab("Candados", jLayeredPane1);

        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel3.setForeground(new java.awt.Color(0, 51, 0));
        jLabel3.setText("Correo Electrónico");
        jLabel3.setBounds(80, 10, 210, 40);
        jLayeredPane2.add(jLabel3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel4.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel4.setText("Correo:");
        jLabel4.setBounds(20, 100, 53, 17);
        jLayeredPane2.add(jLabel4, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField2.setBounds(170, 50, 170, 30);
        jLayeredPane2.add(jTextField2, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField3.setBounds(80, 90, 130, 30);
        jLayeredPane2.add(jTextField3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel9.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel9.setText("Repita Contraseña:");
        jLabel9.setBounds(30, 170, 140, 17);
        jLayeredPane2.add(jLabel9, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jPasswordField3.setBounds(170, 130, 170, 30);
        jLayeredPane2.add(jPasswordField3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel10.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel10.setText("Descripción:");
        jLabel10.setBounds(20, 210, 90, 17);
        jLayeredPane2.add(jLabel10, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel11.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel11.setText("ID Correo electrónico:");
        jLabel11.setBounds(10, 50, 160, 17);
        jLayeredPane2.add(jLabel11, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jPasswordField4.setBounds(170, 170, 170, 30);
        jLayeredPane2.add(jPasswordField4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel12.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel12.setText("Contraseña:");
        jLabel12.setBounds(80, 130, 90, 17);
        jLayeredPane2.add(jLabel12, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jScrollPane2.setViewportView(jEditorPane2);

        jScrollPane2.setBounds(20, 230, 330, 60);
        jLayeredPane2.add(jScrollPane2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton3.setForeground(new java.awt.Color(255, 65, 0));
        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/OCI/mail_new.png"))); // NOI18N
        jButton3.setText("Nuevo");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });
        jButton3.setBounds(60, 300, 110, 40);
        jLayeredPane2.add(jButton3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton4.setForeground(new java.awt.Color(102, 102, 0));
        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/OCI/ojos.png"))); // NOI18N
        jButton4.setText("Creados");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });
        jButton4.setBounds(200, 300, 110, 40);
        jLayeredPane2.add(jButton4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox1.setFont(new java.awt.Font("Tahoma", 0, 12));
        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "@gmail.com", "@hotmail.com", "@hotmail.es", "@yahoo.com", "@yahoo.com.mx", "@yahoo.es", "@ymail.com", "@rocketmail.com", "@myopera.com", "@terra.es", "@ya.com", "@mixmail.com", "@latinmail.com", "@starmedia.com", "@orangemail.es" }));
        jComboBox1.setBounds(220, 90, 120, 30);
        jLayeredPane2.add(jComboBox1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane1.addTab("e-mail", jLayeredPane2);

        jLabel8.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel8.setForeground(new java.awt.Color(0, 61, 0));
        jLabel8.setText("Cursos");
        jLabel8.setBounds(140, 10, 80, 30);
        jLayeredPane3.add(jLabel8, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel13.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel13.setText("Descripción:");
        jLabel13.setBounds(20, 180, 130, 17);
        jLayeredPane3.add(jLabel13, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel14.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel14.setText("Puntos del curso:");
        jLabel14.setBounds(20, 140, 130, 17);
        jLayeredPane3.add(jLabel14, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel15.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel15.setText("ID Curso:");
        jLabel15.setBounds(80, 50, 70, 17);
        jLayeredPane3.add(jLabel15, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel16.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel16.setText("Nombre curso:");
        jLabel16.setBounds(40, 100, 110, 17);
        jLayeredPane3.add(jLabel16, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField4.setBounds(150, 50, 180, 30);
        jLayeredPane3.add(jTextField4, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField5.setBounds(150, 100, 180, 30);
        jLayeredPane3.add(jTextField5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextField6.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextField6.setText("0");
        jTextField6.setBounds(150, 140, 50, 30);
        jLayeredPane3.add(jTextField6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jScrollPane3.setViewportView(jEditorPane3);

        jScrollPane3.setBounds(20, 200, 320, 90);
        jLayeredPane3.add(jScrollPane3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton5.setForeground(new java.awt.Color(255, 65, 0));
        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/OCI/gtk-stock-book.png"))); // NOI18N
        jButton5.setText("Nuevo");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });
        jButton5.setBounds(60, 300, 110, 40);
        jLayeredPane3.add(jButton5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton6.setForeground(new java.awt.Color(102, 102, 0));
        jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/OCI/ojos.png"))); // NOI18N
        jButton6.setText("Creados");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });
        jButton6.setBounds(200, 300, 110, 40);
        jLayeredPane3.add(jButton6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane1.addTab("Cursos", jLayeredPane3);

        jLabel17.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel17.setForeground(new java.awt.Color(0, 61, 0));
        jLabel17.setText("Redes sociale");
        jLabel17.setBounds(100, 10, 150, 30);
        jLayeredPane4.add(jLabel17, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel18.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel18.setText("Contraseña:");
        jLabel18.setBounds(80, 130, 90, 17);
        jLayeredPane4.add(jLabel18, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel19.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel19.setText("Descripción:");
        jLabel19.setBounds(30, 200, 100, 17);
        jLayeredPane4.add(jLabel19, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel20.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel20.setText("ID Red Social:");
        jLabel20.setBounds(70, 50, 100, 17);
        jLayeredPane4.add(jLabel20, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel21.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel21.setText("Usuario:");
        jLabel21.setBounds(100, 90, 60, 17);
        jLayeredPane4.add(jLabel21, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField7.setBounds(170, 90, 140, 30);
        jLayeredPane4.add(jTextField7, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jPasswordField5.setBounds(170, 130, 140, 30);
        jLayeredPane4.add(jPasswordField5, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jPasswordField6.setBounds(170, 170, 140, 30);
        jLayeredPane4.add(jPasswordField6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel22.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel22.setText("Repita contraseña:");
        jLabel22.setBounds(30, 170, 140, 17);
        jLayeredPane4.add(jLabel22, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jScrollPane4.setViewportView(jEditorPane4);

        jScrollPane4.setBounds(30, 220, 310, 70);
        jLayeredPane4.add(jScrollPane4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton7.setForeground(new java.awt.Color(255, 65, 0));
        jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/OCI/Social_network.png"))); // NOI18N
        jButton7.setText("Nuevo");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });
        jButton7.setBounds(60, 300, 110, 40);
        jLayeredPane4.add(jButton7, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton8.setForeground(new java.awt.Color(102, 102, 0));
        jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/OCI/ojos.png"))); // NOI18N
        jButton8.setText("Creados");
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });
        jButton8.setBounds(200, 300, 110, 40);
        jLayeredPane4.add(jButton8, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox2.setFont(new java.awt.Font("Tahoma", 0, 14));
        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Facebook", "google+", "Twitter", "MySpace", "HI5!", "Orkut", "Bebo", "Xing", "LinkedIn", "Neurona", "eConozco" }));
        jComboBox2.setBounds(170, 50, 140, 30);
        jLayeredPane4.add(jComboBox2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane1.addTab("Redes Sociales", jLayeredPane4);

        jLabel23.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel23.setForeground(new java.awt.Color(0, 61, 0));
        jLabel23.setText("Licencias de conducir");
        jLabel23.setBounds(70, 10, 230, 30);
        jLayeredPane5.add(jLabel23, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel26.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel26.setText("Descripción:");
        jLabel26.setBounds(20, 190, 100, 17);
        jLayeredPane5.add(jLabel26, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField8.setBounds(140, 70, 160, 30);
        jLayeredPane5.add(jTextField8, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton9.setForeground(new java.awt.Color(255, 65, 0));
        jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/OCI/small_car.png"))); // NOI18N
        jButton9.setText("Nuevo");
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });
        jButton9.setBounds(60, 300, 110, 40);
        jLayeredPane5.add(jButton9, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel27.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel27.setText("ID licencia:");
        jLabel27.setBounds(60, 70, 80, 17);
        jLayeredPane5.add(jLabel27, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextField9.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextField9.setText("000000000000000");
        jTextField9.setToolTipText("");
        jTextField9.setVerifyInputWhenFocusTarget(false);
        jTextField9.setBounds(140, 110, 160, 30);
        jLayeredPane5.add(jTextField9, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton10.setForeground(new java.awt.Color(102, 102, 0));
        jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/OCI/ojos.png"))); // NOI18N
        jButton10.setText("Creados");
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });
        jButton10.setBounds(200, 300, 110, 40);
        jLayeredPane5.add(jButton10, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jScrollPane5.setViewportView(jEditorPane5);

        jScrollPane5.setBounds(20, 210, 320, 80);
        jLayeredPane5.add(jScrollPane5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jSpinner1.setModel(new javax.swing.SpinnerNumberModel(1, 1, 31, 1));
        jSpinner1.setBounds(140, 150, 50, 30);
        jLayeredPane5.add(jSpinner1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jSpinner2.setModel(new javax.swing.SpinnerListModel(new String[] {"enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"}));
        jSpinner2.setBounds(190, 150, 100, 30);
        jLayeredPane5.add(jSpinner2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jSpinner3.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(2011), Integer.valueOf(2011), null, Integer.valueOf(1)));
        jSpinner3.setBounds(290, 150, 70, 30);
        jLayeredPane5.add(jSpinner3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel28.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel28.setText("Número:");
        jLabel28.setBounds(80, 110, 60, 17);
        jLayeredPane5.add(jLabel28, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel29.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel29.setText("Vencimiento:");
        jLabel29.setBounds(40, 150, 100, 17);
        jLayeredPane5.add(jLabel29, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane1.addTab("Licencias", jLayeredPane5);

        jLayeredPane6.setBackground(new java.awt.Color(153, 153, 153));

        jLabel24.setFont(new java.awt.Font("Tahoma", 0, 24));
        jLabel24.setForeground(new java.awt.Color(0, 61, 0));
        jLabel24.setText("Cambio de Contraseña");
        jLabel24.setBounds(70, 30, 250, 40);
        jLayeredPane6.add(jLabel24, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel25.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel25.setText("Contraseña:");
        jLabel25.setBounds(80, 100, 90, 17);
        jLayeredPane6.add(jLabel25, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel30.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel30.setText("Repita contraseña:");
        jLabel30.setBounds(30, 180, 140, 20);
        jLayeredPane6.add(jLabel30, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel31.setFont(new java.awt.Font("Arial", 1, 14));
        jLabel31.setText("Nueva contraseña:");
        jLabel31.setBounds(30, 140, 140, 17);
        jLayeredPane6.add(jLabel31, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jPasswordField7.setBounds(170, 100, 160, 20);
        jLayeredPane6.add(jPasswordField7, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jPasswordField8.setBounds(170, 140, 160, 20);
        jLayeredPane6.add(jPasswordField8, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jPasswordField9.setBounds(170, 180, 160, 20);
        jLayeredPane6.add(jPasswordField9, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton11.setFont(new java.awt.Font("Tahoma", 1, 14));
        jButton11.setForeground(new java.awt.Color(255, 65, 0));
        jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/OCI/mypc_lock.png"))); // NOI18N
        jButton11.setText("Cambiar");
        jButton11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton11ActionPerformed(evt);
            }
        });
        jButton11.setBounds(110, 240, 130, 50);
        jLayeredPane6.add(jButton11, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane1.addTab("Cambiar contraseña", jLayeredPane6);

        jMenu2.setText("Opciones");

        jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
        jMenuItem1.setText("Serrar cesión");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem1);

        jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_MASK));
        jMenuItem3.setText("Salir del programa");
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem3);

        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 369, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    /*
     * Evento para la primera opcion del menu, crear informacion de un candado
     * nuevo
     */
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
    String pswValidar = JOptionPane.showInputDialog("Ingrese contraseña para validar");
    
    newCandado.CandadoNuevo(pswValidar, jTextField1.getText(), 
            jPasswordField1.getText(), jPasswordField2.getText(), jEditorPane1.getText());
    
    if(newCandado.getInfo()){
        JOptionPane.showMessageDialog(rootPane, newCandado.getMsj(),"Candado nuevo",
                    JOptionPane.INFORMATION_MESSAGE);
    }
    else{
        JOptionPane.showMessageDialog(rootPane, newCandado.getMsj(),"Candado nuevo",
                    JOptionPane.ERROR_MESSAGE);
    } 
}//GEN-LAST:event_jButton1ActionPerformed

/*
 * Opcion del menu para salir definitivamente del programa
 */
private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
    System.exit(1);
}//GEN-LAST:event_jMenuItem3ActionPerformed

/*
 * Metodo implementado para obtener las cuentas creadas del candado
 */
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
    String pswValidar = JOptionPane.showInputDialog("Ingrese contraseña para validar");
    JOptionPane.showMessageDialog(rootPane, newCandado.getCuentaCandado(pswValidar),"Cuentas candados",
                    JOptionPane.WARNING_MESSAGE);
}//GEN-LAST:event_jButton2ActionPerformed

/*
 * Boton implementado para crear una nueva cuenta de usuario.
 */
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
    
    String correo = " "; 
    correo = jTextField3.getText() + cuentasCorreos[jComboBox1.getSelectedIndex()];
    
    String valContraseña = JOptionPane.showInputDialog("Ingrese contraseña de usuario");
    newCorreo.correoNuevo(jTextField2.getText(), correo, jPasswordField3.getText(),
            jPasswordField4.getText(),jEditorPane2.getText(),valContraseña);
    
    if(newCorreo.getInfo()){
        JOptionPane.showMessageDialog(rootPane, newCandado.getMsj(),"Correo nuevo",
                    JOptionPane.INFORMATION_MESSAGE);
    }
    else{
        JOptionPane.showMessageDialog(rootPane, newCandado.getMsj(),"Correo nuevo",
                    JOptionPane.ERROR_MESSAGE);
    } 
}//GEN-LAST:event_jButton3ActionPerformed

/*
 * Se visualiza las cuentas de correo creadas.
 */
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
    String pswValidar = JOptionPane.showInputDialog("Ingrese contraseña para validar");
    JOptionPane.showMessageDialog(rootPane, newCorreo.getCuentaCorreo(pswValidar),"Correo",
                    JOptionPane.WARNING_MESSAGE);
}//GEN-LAST:event_jButton4ActionPerformed

/*
 * Boton para crear un nuevo curso
 */
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
    
    String valContraseña = JOptionPane.showInputDialog("Ingrese contraseña de usuario");
    double puntos = 0;
    
    
    
    if(newCurso.validarCurso(valContraseña)){
 
    /*
     * combirtiendo la cadena con el punteo a double
     */
        try{
            puntos = (double)Integer.parseInt(jTextField6.getText());
        }
        catch(NumberFormatException ex){
            JOptionPane.showMessageDialog(rootPane,"Error ingrese punteo en enteros", 
                    "Cursos",JOptionPane.ERROR_MESSAGE);
            
            return;
        }
    
        if(puntos >= 0){
            newCurso.nuevoCursos(jTextField4.getText(), jTextField5.getText(), puntos, 
            jEditorPane3.getText());
    
            if(newCurso.getInfo()){
                JOptionPane.showMessageDialog(rootPane, newCandado.getMsj(),"Cursos",
                    JOptionPane.INFORMATION_MESSAGE);
            }
            else{
                JOptionPane.showMessageDialog(rootPane, newCandado.getMsj(),"Cursos",
                    JOptionPane.ERROR_MESSAGE);
            } 
        }
        else{
            JOptionPane.showMessageDialog(rootPane, "Ingrese una nota entre 0 y 100","Cursos",
                    JOptionPane.ERROR_MESSAGE);
        }
    }  
    else{
        JOptionPane.showMessageDialog(rootPane, newCurso.getMsj(),"Curso nuevo",
                    JOptionPane.ERROR_MESSAGE);
    }
}//GEN-LAST:event_jButton5ActionPerformed

/*
 * Boton encargado para crear una nueva cuenta de red social
 */
private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
   
   String valContraseña = JOptionPane.showInputDialog("Ingrese contraseña de usuario");
   newRsocial.nuevaRedSocial(redesSociales[jComboBox2.getSelectedIndex()], jTextField7.getText(),
           jPasswordField5.getText(), jPasswordField6.getText(), jEditorPane4.getText(), valContraseña);
   
   if(newRsocial.getInfo()){
        JOptionPane.showMessageDialog(rootPane, newRsocial.getMsj(),"Red Social",
                    JOptionPane.INFORMATION_MESSAGE);
    }
    else{
        JOptionPane.showMessageDialog(rootPane, newRsocial.getMsj(),"Red Social",
                    JOptionPane.ERROR_MESSAGE);
    }
}//GEN-LAST:event_jButton7ActionPerformed
/*
 * Se utiliza para visualizar las cuentas de redes sociales creadas
 */
private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
    String pswValidar = JOptionPane.showInputDialog("Ingrese contraseña para validar");
    JOptionPane.showMessageDialog(rootPane,newRsocial.getRedSocial(pswValidar) ,"Correo",
                    JOptionPane.WARNING_MESSAGE);
}//GEN-LAST:event_jButton8ActionPerformed

/*
 * Se crea la nueva licencia de conducir
 */
private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
    
    String pswValidar = JOptionPane.showInputDialog("Ingrese contraseña para validar");
    
    if(newLicencia.validarLicencia(pswValidar)){
        /*
         * Validando el numero de la licencia de conducir
         */
        int numLicencia;
        
        try{
            numLicencia = Integer.parseInt(jTextField9.getText());
        }
        catch(NumberFormatException ex){
            JOptionPane.showMessageDialog(rootPane,"Error ingrese el número en enteros", 
                    "Cursos",JOptionPane.ERROR_MESSAGE);
            return;
        }
        
        /*
         * Comprobando que la fecha sea correcta
         */
        int dia = Integer.parseInt(jSpinner1.getValue().toString());
        String mes = jSpinner2.getValue().toString();
        int anio = Integer.parseInt(jSpinner3.getValue().toString());
        
        if(newLicencia.setFecha(dia, mes, anio)){
            newLicencia.newLicencia(numLicencia, jEditorPane5.getText(),jTextField8.getText());
            
            if(newLicencia.getInfo()){
            JOptionPane.showMessageDialog(rootPane, newLicencia.getMsj(),"Licencia de conducir",
                    JOptionPane.INFORMATION_MESSAGE);
            }
            else{
                JOptionPane.showMessageDialog(rootPane, newLicencia.getMsj(),"Licencia de conducir",
                    JOptionPane.ERROR_MESSAGE);
            }
        }
        else{
            JOptionPane.showMessageDialog(rootPane, newLicencia.getMsj(),"Licencia de conducir",
                    JOptionPane.ERROR_MESSAGE);
        }
    }
    JOptionPane.showMessageDialog(rootPane, newLicencia.getMsj(),"Licencia de conducir",
                    JOptionPane.ERROR_MESSAGE);
}//GEN-LAST:event_jButton9ActionPerformed

/*
 * Obteniendo las licencias de conducir almacenadas en el programa
 */
private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
    String pswValidar = JOptionPane.showInputDialog("Ingrese contraseña para validar");
    JOptionPane.showMessageDialog(rootPane,newLicencia.getLicenciaConducir(pswValidar) ,"Correo",
                    JOptionPane.WARNING_MESSAGE);
}//GEN-LAST:event_jButton10ActionPerformed

/*
 * Evento para serrar secion...
 */
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
    
}//GEN-LAST:event_jMenuItem1ActionPerformed

/*
 * Metodo implementado para cambiar la contraseña del usuario.
 */
private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed

}//GEN-LAST:event_jButton11ActionPerformed

/*
 * Metodo implementado para obtener los cursos creados
 */
    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
    String pswValidar = JOptionPane.showInputDialog("Ingrese contraseña para validar");
    JOptionPane.showMessageDialog(rootPane,newCurso.getCSursos(pswValidar),"Curso",
                    JOptionPane.WARNING_MESSAGE);
    }//GEN-LAST:event_jButton6ActionPerformed

/*
 * Implementa la accion para crear una nueva cuenta de correo
 */
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(OpcionesMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(OpcionesMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(OpcionesMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(OpcionesMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new OpcionesMenu().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JEditorPane jEditorPane1;
    private javax.swing.JEditorPane jEditorPane2;
    private javax.swing.JEditorPane jEditorPane3;
    private javax.swing.JEditorPane jEditorPane4;
    private javax.swing.JEditorPane jEditorPane5;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JLayeredPane jLayeredPane2;
    private javax.swing.JLayeredPane jLayeredPane3;
    private javax.swing.JLayeredPane jLayeredPane4;
    private javax.swing.JLayeredPane jLayeredPane5;
    private javax.swing.JLayeredPane jLayeredPane6;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuBar jMenuBar2;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JPasswordField jPasswordField1;
    private javax.swing.JPasswordField jPasswordField2;
    private javax.swing.JPasswordField jPasswordField3;
    private javax.swing.JPasswordField jPasswordField4;
    private javax.swing.JPasswordField jPasswordField5;
    private javax.swing.JPasswordField jPasswordField6;
    private javax.swing.JPasswordField jPasswordField7;
    private javax.swing.JPasswordField jPasswordField8;
    private javax.swing.JPasswordField jPasswordField9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JSpinner jSpinner1;
    private javax.swing.JSpinner jSpinner2;
    private javax.swing.JSpinner jSpinner3;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JTextField jTextField3;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JTextField jTextField5;
    private javax.swing.JTextField jTextField6;
    private javax.swing.JTextField jTextField7;
    private javax.swing.JTextField jTextField8;
    private javax.swing.JTextField jTextField9;
    // End of variables declaration//GEN-END:variables
}
